import { createRouter, createWebHistory } from 'vue-router';

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/iconify-demo',
      name: 'iconify-demo',
      component: () => import('@/components/IconifyDemo.vue'),
      meta: {
        title: 'Iconify 图标示例',
      },
    },
    {
      path: '/iconify-buttons',
      name: 'iconify-buttons',
      component: () => import('@/components/IconifyButtonExample.vue'),
      meta: {
        title: 'Iconify 按钮示例',
      },
    },
    {
      path: '/iconify-nav',
      name: 'iconify-nav',
      component: () => import('@/components/DemoNavigation.vue'),
      meta: {
        title: 'Iconify 导航',
      },
    },
    {
      path: '/improved-buttons',
      name: 'improved-buttons',
      component: () => import('@/components/ImprovedActionButtons.vue'),
      meta: {
        title: '改进的操作按钮',
      },
    },
  ],
});

export default router;
